Fix broken imports in the db, features and test packages.
Depend on python-dev on debian.

* Necessary for distutils package.