Added cmake build, minor fix for OSX signals