extconf fix compiler error and document