Added unix CheckLibrary and improved CheckLibraryVersion.

Some more library checking function adjustments in preparation for dependencies check on linux systems