Fix compilation in release mode. CR by Daniel Mewes.