For mac os x compilation