improves mac os x compilation support