instructions on linking img dir and how to build