add static library support