fix generate so error can not ldd it