Work arounds for mono
Mono fixes