Fixes apple compilation