Fix compile error

Seems that ReSharper introduced a build error when not compiling with VS2012.
This should be fixed now.