fix complation error under Linux/OSX