moved static compilation functionality to a separate executable