fixed build bugs that showed up during packaging

Errors in the Makefile logic meant that instead of crashmail and a bunch
of tools you would get crashmail and lots of other copies of crashmail.
Also I failed to bump the compiled-in version when in crashmail.h.
bumped version numbers
fixing more Makefile problems
Fix duplicate argument to LogWrite.

The error message would not be written to the log file because
a duplicate log file name parameter was passed to the LogWrite
function, hiding the error message string.
Use stdint types to get sizes with known number of bits.

Several binary data structures read by the software will get
mangled if the data is not read properly.

This fixes data handling issues on 64-bit architectures.
Fix printf format strings for node numbers.

4D node number components were formatted with %ld or %lu (long integer),
despite them being declared as ushort. This worked fine on 32-bit
architectures, but not on 64-bit architectures.

This fixes log and error messages displaying 4D node numbers in 64-bit
builds.
Bug#592481: crashmail: FTBFS on GNU/kFreeBSD

Package: crashmail
Version: 0.71-3
Severity: important
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd

Hi,

the current version fails to build on GNU/kFreeBSD.

It needs small tweak, see bellow.

Thanks in advance

Petr
Merge branch 'feature/debian-integration' into develop

This merges in a set of bug fixes from the Debian crashmail package.
inc version (and modify version handling)

version information is now isolated in crashmail/version.h
start work on unit tests
added test framework
removed some unnecessary debug output
added tests/Makefile
Merge branch 'feature/tests' into develop

This adds some basic tests to crashmail. You will need roundup
(http://bmizerany.github.com/roundup/) to run the tests.
Fix integer-length issues in crashwrite

Crashwrite declares pktnum as type ulong when it should really be
uint32_t.  Using "%lx" instead of "%x" to display this was resulting
in invalid packet filenames.
crashstats target was not consistent with others