fixed small import bug for OSX

Hi please ignore my previous pull request and check out this one.  You can easily import it in your existing project as a new branch (juledev)