handle the build and gnu options separately.