Fixed linux compiling issues