Use the ./configure --debug flag to determine the build target for Windows

Use the ./configure --debug flag to determine the build target for Windows builds to build the code and packages either Release and Debug.