makefile: fix addons libraries and pkg-config parsing