Fix autotool scripts
small fixes to compile