Add functions to check libraries using semantic versions

Change-Id: Id195b5ce970559daad237fcb6508c755800d62bd