fixed the static link problems.