Fixed some of our compile warnings using ReSharper 7.0 and its Clean code feature