change internal require style for browserify
adds fallback protobuf implementation