Fixed mac os build