Revert "Merge pull request #70 from shuizhongyueming/master"

This reverts commit 49579d689e23e7326260f5076764affe8f11c3e2, reversing
changes made to 18b51d212191d38dd237b47b7ad22d05b0060a25.

The added changes only worked for iOS projects, but broke OSX builds.