Added more memory to the compiler, still memory issues may occur (investigating this). Added execute permission to run script.