Making port listing work on all platforms.