Windows-specific functions now optional

Import Tesseract helper functions from defunct yflood project