Fix logs location
Unset variables when they don't need
Fix zlib building