Build fixes and another runtime error fixed

Added the release configuration to the solution after spotting yet
another runtime error reminded me that I forgot it.