automake build scripts so we can cross compile easily