made templates run on VS2012