rm unused __max macro and linux-specific header