Allow setting a specific mode when building