fix comilation under MacOS