Add close font procedure
Fix library build script not removing previous library build.