ex26: Mac compatibility + error-free compile

* There was a missing return statement in db.c
* BUILD_DIR was accidentally set to /tmp-pkg-build