Fix some warnings when compiling on Linux