fix MAX OSX compile issue