build zlib before protobuf and set JOBS=1