Some compile script tweaks