fix ashton compile on macos error