fix missing include for ::close in platform_support.h