cleanup warnings and tweak libjpeg version formatting