Move some functions to compat

Also add parameter to hide broadcast messages on console