so -lapt-pkg will compile the application. Need to find out why.