Cleanup

used zlib build with correct project settings
included debug info of libraries
small code improvements