Revert "Fix header generator lua script in windows"

This reverts commit 5f1d27e6ba273fa6113330a71bb3263321b680c8.
Proposed fix for gendeclarations.lua
Dropped this
Set Win32 build flags into CMAKE_C_FLAGS

- add_definition set flags were being ignored by the header generator
  code, setting CMAKE_C_FLAGS directly
Define CMAKE_C_FLAGS as a string instead of a list
Minor fixes for windows
Fix header generation for windows

- Call compiler from CMake instead of lua script
- Accept preprocessor lines with trailing chars after #
- Lua script fourth argument is now the path to the proprocessor output