Fix exports when building with no-package on Mac