DFCommon.h is heavely reduced, and platform.h expanded with the few needed things.
In general ansi header files only demanded in few modules are put in the modules.
Windows is a usual special, so some functions have a different implementation here (see platform.h).
Test cases have been added to ensure these functions work on all platforms.