Fix Mac compile