Split main executable from library module