First version of an autotools based build system

"core" directory had to be renamed to "toxcore" due to an autotools
limitation (name clash)

I also assume that I probably broke the cmake build but I can't test it,
since the original cmake setup did not work for me in the first place.