Minor dispatcher and signal modifications for gcc compilation
Added basic support for log level filtering