add support for TARGET_VERSION and build for arm