Fix build problems on Mac/Darwin

Hi Matthias,

I fixed the OSX build (at least on my system):
OSX Version: 10.9.2
Compiler: Apple LLVM version 5.1 (clang-503.0.38)

But there is one issue remaining in the generated makefiles: the touch command on OSX does not support the '-d yesterday' command line option. You could use '-t $(shell date -v-1d "+%Y%m%d")' instead, but date on Linux is missing the -v option :(

Not sure what the defines in dlp_type_extern.h are for. I removed (commented) them to satisfy the compiler (commit daaf8ed).

Matthias