Add logic for optional build of tally library.
Merge pull request #265 from gonuke/rearrange_dirs

Add logic for optional build of tally library.