gi-tester: Don't use negative substring parameters

Bash from OSX 10.9 seems not to support them.
Fix errors parsing OSX 10.9 headers

Un-defining __BLOCKS__ disables blocks in system
headers (like stdlib.h).
This avoids errors while compiling.