Add string.h and fix some size issues compiling on amd64