Merge "Build both of static and shared libs."