Hacky fix to make things compile on MacOS X.