Made midi port opening platform specific for windows