build: Work around SIZE_MAX bug in OSX headers