Fix optimised build.