Workaround errors with mono 3.0.7+