Set arch to armv7 and fix warning