solves mac compilation problems