Misc compiler warning fixes.
Build system changes.

Removed zlib dependency. Boost is now found by CMake. Each library now has separate root directory variables for greater flexibility. A few variables have been renamed for clarity/standardisation.