Fixed some warnings on Linux