Move BUILDDIR declaration.