OpenCS packaging for OS X

Sorry for last minute pull requests, but it should only affect OS X anyway.
Also fixed couple of warnings on Mac.