Remove extra autohell crap.

Compile example files.
Add config.h needed by the lexer
Remove useless directory since we use cmake
Remove useless m4 directory since we use cmake
Add new file to handle the config options array
Put stuff for portability in a separate file.

Fix minor stuff.