Added safe function to check min lib version