configure: Add check for UI build