add conditional compilation to build on OSX
Merge pull request #6 from avsm/cmeleon

add conditional compilation to build on OSX