Allow to override default extension_dir using operating_system.rb

This follows the same logic as gem_dir overrides, although
default_ext_dir_for requires base_dir parameter. This allows to install
gems for example into /usr/share, but their extensions into /usr/lib64.
Merge pull request #744 from voxik/extensions_dir-override

Allow to override default extension_dir using operating_system.rb