fix linux build issues and create shell script to run build in a dev env