make local-lib a script
support SPLIT_BUILD option