[FIX] include fix for StatisticFunctions

- include all necessary headers for StatisticFunctions in the file
  itself
- ensure that test will catch it if includes are missing
[FIX] replace TRUE and FALSE macros from Qt
[FIX] move header macros to .C file
Merge pull request #644 from hroest/Fix_header_macros

fix header macros