Fix debug build [Windows]

A fix for #127 when compiling in debug mode