Fix to osxsupport to work on other platforms.