move shared build instructions for nls into a common file