Solve compiling issues on some systems