Fix some warnings in Linux build