Fix building with libc++.

- Purged std::tr1::strlower (was never used).
- Moved std::tr1::insensitive to irc::insensitive.
- Added TR1NS macro to point to the correct C++ TR1 namespace.
Merge pull request #495 from SaberUK/master+fix-libcpp

Fix building with libc++.