Added protection against the absence of setuptools.
Fixed type naming problem identified on 32 bit platforms (like iOS).