Fix remaining warnings for Mono build