Compile NDMP code with C-compiler and use CFLAGS.
Make estimate command somewhat more robust.

Fixes #349: Director crashes on estimate command of Copy Job
New version including all fixes until today.
Fix regression problems with weird-files tests

Fixes #362: regression tests using the "weird files" are failing on
solaris and Ubuntu 12.4 and 14.4