add port and resolution bitrate options
fix turbojpeg compile problem