Merge pull request #2 from hobu/master

add licensing info
Make stuff build cleanly on msvc12