Handle proper rebuild depending on dependant .a

libpkg.a is now rebuilt if sqlite, yaml, ucl are rebuilt
pkg-static is now rebuilt if libpkg.a is rebuilt