Update CMakeLists to support file generation targets on windows

Assuming CMake > 2.8.0 and flex executable is found on the system,
the following targets can now be used on windows:
  mkdeftagm, kdictbi, mkdictbi, gendeftag