fix LDLIBS when build static library