Add BUILDCORE script and add usr/lib to mkdir commands

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>