Fixed some compiler warning, Fixed make test.

Fixed some compiler warning.
Fixed make test on i386.