add autotool files, fix (originally wrong stuff anyway) for gcc
add missing autotool files
add token test. will make it better next time