Use build flags defined at build time instead of thos hard coded into the makefile. ===================================================================
Explicitely include <unistd.h> to have usleep() in the scope. Fix FTBFS with gcc-4.7 ===================================================================