Allow compilation for MacOS 10.7 and optimize brain code slightly

Change the Mac build to allow 10.7 compilation too also change the
local value holding for the brain code.