Made sample work with VS2012 in Release mode only