Build as module
Fixed some compiler warnings.
Upgraded to Xcode 6.1