Finally got the program running and script doing successful compilation