[feature] fix sys/malloc.h include for __APPLE__