changes to enable release build on VS2012