Fixed issues with using old debug exe and dll names
Fixed compiler warnings
Fixed bad debug dll names (due to cmake removing -d)
Merge pull request #756 from lodle/misc-fixes3

Misc fixes3