CMake support finalized
 - Added Windows conditions to cmake files
 - Changed dll export/import implementation