Merge pull request #266 from HackFisher/master

DBROOTDIR could already be set in win env
Some cleanup and fix for issue 131
change default KH_STATIC_QT to 0