Fixed creation of debug library on windows

On Windows debug library should have 'd' postfix.

Thanks to Ivan Romanov for the patch.

This fixes issue#35.