Workaround OSX clang broken map operator[] using ifdef guards and manual find/insert.
Merge pull request #81 from danielhams/clangworkarounds

Clang workarounds for broken map operator[]