Created linux build scripts, fixed minor issues reported by GCC