Fixes the DLL type and flags and builds the debug version of the DLL.

Really a minor fix.
Thank you.