Partial commit
Finally fixed issue with dynamic library loading on POSIX systems.  Code is getting messy and definitely in need of reorganization