Check if `Buffer` is available before using.

Allows for use in client-side environments such as
browserify/component.
Merge pull request #17 from hughsk/buffercheck

Check if `Buffer` is available before using.