Fixed some dependencies and added install targets.