Reconfig_env

Wrote a quick macro to detect the environment and setup the appropriate
libraries. Modified the setup data files to reflect and use this change