a much more dynamic version.

This version allows you to select the architecture to build with.