add cmake support, osx, linux, windows
Merge pull request #7 from rphillips/fixes/cmake

add cmake support, osx, linux, windows