Correct some warnings and compile problems
Linux compile script