build-sys: fix link-order