Brain: fix support for more recent compilers