Fix all build warnings on VS2013 and Mono 3.4.0