Make compiling with --display return valid results