OS detection and handling for more Mono-supported platforms