Try remarking out the EXTERNAL PROCEDURE statements. First, AFAIK, they're unnecessary (I've never used them and I use Foxtools functions all the time).
Remarking gthem out still gives the error whenthey are used like so:
Main_hWnd = MainHWND()
cur_window = _WhToWind(_WOnTop)
But the EXE works anyway. Thx.