Portability enhancements + DBUtil enhancements
Merge pull request #975 from rgasch/dbutil

Minor enhancements, portability fixes + option to disable joins