Add 64 bits support for Linux, and a little bug fixed