build: rename 'intree' to 'srctree' and fix libs

Need to reference .libs subdir of library directories for
building against the source tree.