A few MacOSX fixes (don't use non-POD variable-sized arrays)