Disable debug compile options
Move write queue handling into Writer type in daemonlib
Fix setting log level of API log category