fix build and add scopt as cli arguments parser