fix issues compiling on Linux