Build in headless mode