Release Build Fix

Fixed release biulds when using the visual studios 2010 solution on
windows.