Fix #include in dblib_stubs

Also use a specific exception instead of _Failure_.