Modified to check OS X version before insallation of dependent libraries.