Fix build on 32-bit linux, fix automake error, some typos