Improved style
Improved cmake script: add OS X specific options only on Mac platform
Improved cmake warning message

Related to #572
Fixed unused parameter warning