neuromag compiler fixes