linux build fixes (thanks to seclorum)

Fixes worked out by seclorum, used find_package in zlcore and linked against opengl to stop linker errors introduced by incorrect ordering of link libs.