added a skeleton of dds-daemonize + fixed some minor compile time issues