Added a header check for libjpeg (jpeglib.h).
Fixed variable parsing inside selectors.

parseSelector() was only expecting one variable in a selector.