Fix some warnings on Linux