Fixed main.cpp, added some dir structure and updated autotools