small build fixes from test on vs2010
added simple cmakelist for build generation