Fix compiling with optimisations disabled.