Changed compile script to avoid errors