Bind some error constants conditionally for 0.9.8e support

More #748