Check for the libz, libbz2 and g++-4.7 before building