fix ext/lib/ permission problem