Added unix CheckLibrary and improved CheckLibraryVersion.