Work around lack of cgo when cross-compiling to arm.

Change-Id: Ic230362b9f19af0c99f296f14330c970bf5d010b