Fix travis-ci compile error in token extractor