fix staticlibs error