cmake: cleanup out-of-source build

The build worked, but two files were placed in the source tree.
The default for configure_file is to convert a file from the source tree
to one in the binary tree anyways, so just use that.
add DISCID_VERSION_NUM for easy calculation

This is basically one decimal number created using two digits for each
part of the version.
This breaks when patch version > 99 (unlikely) and has to be adapted when
the major version changes (> 0).

MAJOR is not used now, since we can't have leading zeroes.
This would make it an octal number.
move VERSION_NUM calculation to build files

This duplicates the code, but makes discid.h easier to read and
understand.
update ChangeLog with new defines
fix patch version comparision

Thanks atwupack for catching that.
set version to 0.5.0
cmake: add distwin32 target

This doesn't work yet, because distcheck complains about versioninfo.o not being removed by distclean.
fix mingw-linux out-of-source cross-build

Make works without errors now, make test doesn't yet.
These additional includes were not necessary for "normal" out-of-source
builds on Windows and Linux somehow.
Merge remote-tracking branch 'cmake/master'
fix check for mingw-cross-build

In general one could use wine to run test_discid.exe,
however, this is not easy due to the libtool wrapper, which can't be run
with wine.
The tests are disabled, this fixes distcheck.
autotools: fix distcheck on Windows
Merge branch 'distwin32'
use libdiscid_DISTDIR in dist
optimize distwin32 target
add distmac target

This builds a universal binary with 32 and 64 bit intel and ppc included.

Building that in one run doesn't work because of the Endianess check.
distmac: also provide single arch binaries
update ChangeLog
fix out-of-source cmake distribution
require cmake check before autotools dist

This doesn't cost much, and I only have to check
"cmake; make dist" on every platform to check everything.
cmake: out-of-source build/install fixes