Fix header guards naming

Identifiers beginning with __ are reserved for any use
in C (C99, 7.1.3p1).
Add check for realloc failure in sdsRemoveFreeSpace