fix #8082, mac travis build