Fixed compile error for static builds.