fix link error when using giflib-nox11
remove duplicated flag
replace --enable-native with --with-arch