fix relative import of OSX platform