The #define to enum shutdown_how change for shutdown(2) has broken this build. Remove the overridden SD_BOTH and directly call SHUT_RDWR for now.