Fixed macosx compilation