Add defines to new list_ports methods to compile on OSX.

Header defines to enable code to work on OSX again.

This affects the new (and awesome!) port listing code.