Couple of fixes to the compile script