fix build error with automake >= 1.14
fix stdc++ check
replace --enable-native with --with-arch=native
update .gitignore