configure: add '--build-here' and env var for specifying --third-party