Fallback to malloc if VLA is not available