Fixed: Collapse relative include paths

While calculating dependencies CMake may generate large filenames
with lot of ../../../a/b/c/../../d/e/../../e/f parts.
This leads to corrupted makefiles on win32.