use $AR and full paths to ar-lib and compile