Don't use Buffer global if it's not present

Fixes #25
cleanup for #26