make it possible to cross compile on ARM. This closes #26