add cmake support
fix throw for non-msvc compilers
delete unnecessary stdafx and targetver
replace _tmain with main (_tmain is windows-only stuff)
Fix CMakeLists

add serialization component
force static libs for msvc (workaround strange CMake behaviour)
Merge pull request #2 from Mixaill/cmake

Fixes for non-MSVC compilers, added CMake support.
Credits to  Mixaill