Fixed Compiling issues,added scripts for compiling