Once those files were there, it all worked perfectly - thanks Bernhard and Stephan for your help. If anyone has similar problems on FC, I would suggest doing an update or getting the .h files from somewhere (apparently it is fixed in db4-4.2.52-5 from fc3. ) https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=131365