macosx: fix dynamic lib path; also temp fix for build cache

BuildCache needs some additional work to properly identify if each product has been touched; not just if a buildfile has been touched -- which is the current state.