Fixed compile-error on gcc 4.6. I suspect it is an error in the compiler, but it was easy to avoid.
fixes make-Makefile.sh shell script shebang
adds linker flags for librt