Fix import compatibility for OSX target