Merge pull request #755 from reaperhulk/conditional-error-bindings

Bind some error constants conditionally for 0.9.8e support