Fix gcc-5666.3 ctypes.h problem

It may be that the only for __APPLE__
compile-guard prevents this compiling on Darwin
I will test this once I get it building on Darwin
again.