updating to allow injecting sdk.dir and to use latest compat library