Update: syntax is your friend.
Add: Debug All mode for heaptrc.
Add: codepage stuff. Remove: useless defines.
Change: rely on project and tpgetopt.inc to set compiler options and conditional defines, respectively.
Change: pass LongOpts array by reference.
Remove: compiler configuration from tpgetopt.inc.
Restore: descriptive conditional defines.
Change: compact compiler flags.