Fix warnings which only appear under Mono