Compiler hook fixes for SOF.