fix redistribution problem, static link the library.