Added missing #includes

malloc needs stdlib.h
memset needs string.h
Fixed build with GCC 4.8.1

Made inline functions static, otherwise -Werror=missing-prototypes will
trigger on them.
Replaced generic gct* types by their definition

gctBOOL, gctPOINTER and gctUINT64 were replaced.
I left in gctHANDLE and gctPHYS_ADDR for now.
Sync include_v4_uapi with kernel 06ea9eae

This removes the generic gct* types. Since all of them were replaced
by types of equal size, binary compatibility is preserved.