Updated compile script to return the success value of gcc compilation.