Added sDistHook. Factored out autotool configuration. Fixed extra-source-files Moved -DSPECIALIZE_INSTANCES to cpp-options