build: Add compile time architecture detection