Use boost unordered_multimap and unordered_map

Instead of having the complicated check for different architectures,
use the unordered_map and unordered_multimap from boost.
Remove an redirect before adding a new one

If an old redirect is not removed first. The new will not be inserted.