hopefully compile on MacOSX