Fixed MingW build's handling of debug d postfix.
From Kristofer Tingdahl, made method virtual