fixed --enable-static problem, support static library now