Changes to improve compilation under different IDEs/compilers

Only the MSVC/MSBuild is generating Configuration-dependent directories,
e.g. Release, Debug, ...
Hence the copy command to install the targets into the BIN,
was not working under QtCreator.
This has been fixed now by using $<TARGET_FILE:...> property.

The definition _AFXDLL is necessary instead of _AFXEXT
to exclude some includes in the global afxres.rc.
These includes where not found and hence broke compilation.

It works now in MSVC/MSBuild and QtCreator/NMake

Signed-off-by: Tobias Lorenz <tobias.lorenz@etas.com>