Fix build errors

Visual Studio sure allows some evil stuff.