Add serial port opening constructor.