I compiled Tesseract v4.0.0 with gcc using these additional options:
-march=nehalem -DGRAPHICS_DISABLED -Wno-sign-compare
