fixes building and installing against tree specified in