MeCabのコンパイルエラー

gccのバージョンによっては下記のコンパイルエラーが出ます。

param.h:34: error: explicit template specialization cannot have a storage class

param.hの中の

template <>
static std::string lexical_cast(std::string arg) {
return arg;
}

のstaticを削るとコンパイルが通るようになります。
http://gcc.gnu.org/gcc-4.3/porting_to.html

MeCab-0.97では対処済みのようですが、SWIG関係のエラーが出たので旧版をちょこっと修正してみました。