build: implement lcg-based and standalone builds