fix a little dependency and link problem