Reorganize build configuration.