A ksp-compatible version of System.IO.Ports (modified source from Mono)