Add armv7l support and fix build error of cross gcc.