Switch to gcc-4.6. Add some unit tests. Use shared_mutex in hash_map ans has_map::bucket_type.