Fixing incorrect code that Mono pretends to build successfully.