CMAKE: Build libserialport as shared lib on non Windows platforms
CMAKE: Build libserialport as shared lib on non Windows platforms

fixes #3728

stackforce/serial-interface-cli,stackforce/serial-interface-cli