Set compile flags for libraries
Use folders for Visual Studio
Make the imported libraries global
Also add flags for zlib
Use correct preprocessor defines