Build/Tools: Fix linker errors (zlib and pthread)