Merge pull request #58 from q-depot/master

add VC2012 project to compile static and dynamic lib, also fix some C