fixing debug build for windows

This is a fix to get debug builds working on windows see #3