added libs and win32 support in CMakeLists.txt