Fixed OpenCS build on OS X

@sirherrbatka please note this change, includes likes this doesn't work for OS X.