You are not going to get 40MHz with a 4MHz crystal. PLL gives x4 of the input frequency which is 16MHz in your case. See the device datasheet.