MacOSX buildfix