Fix Mac OS compile