Build tools for DART library
- Build tools for compiling DART as a shared or a static library.
Based on work by Anh Pham and Suman Shekhar as part of their SiParCS 2024 projects. - Bugfix: correct order of arguments in count_state_ens_copies for 'input' stages_to_write. #613