macosx compilation fix (hopefully)