add semop() calls to lock state
add check for pkg-config and notes
add correct bugreport URL
enforce minimum version of libcurl
update comments
use autodiscovered curl paths