added compilation flags, DAEMON and TEST