CMake: Fix version dependences

According to cmake manpage output from add_custom_command should not be listed
in more than one independent target that may build in parallel. Instead new
add_custom_target should be used as target dependency. This is already done by
cmake target version.

But output version_fake_file is specified also as dependency for library
AppVersion and it really breaking compilation with massive parallel Ninja build
system. Slow GNU Make looks like does not have this problem.

Also Common library and NSIS installer now depends on generated version files,
so add missing dependency on target version too.

This patch fixing compilation with Ninja as fast alternative to GNU Make.

REVIEW: 112568