precompile cross-platform serialport and usb-detection dll libraries and load libraries according to platform