Fixed option parsing to use the actually produced values.

Signed-off-by: Florian Bergmann <fbergmann@suse.de>
Added missing library.

Signed-off-by: Florian Bergmann <fbergmann@suse.de>