fixed some issues with the compile script