fixed search path problem and add a lib for iOS