Adjusted stream_wrapper_register() calls to work with HHVM.