php: Add zip and optional bz2 support

Use the overload bz2 = true to enable bz2 support for php.
zip support is enabled by default as it doesn't require any library.