Check bus:address and vid:pid validity.
Ignore build leftovers.
Fix missing variable on macosx.
Move list_ports() implementations to OS-specific files.
Fix build for platforms without enumeration & port metadata support.