attempt to work around mac os < 10.9 compilation

I do not at all understand what the problem is. Perhaps inherting from string? I'll try that next