Rename tie() to TIE() to avoid ambigious overload (MSVC++)
Rename DTATADIR to HEDATADIR (colided with name in windows.h)