fix signed/unsigned warnings, query pkg-config for lua flags

fix signed/unsigned warnings
query pkg-config for lua flags
update deps