Fix for failing tests on Mono.