Cleanup to allow use of most functions when linking the library, including mounting and creating filesystems