Make build more cross compile friendly