Split out dylib into separate project

Make OSX platform instead of swift platform
Prepare for iOS platform :D