Add check for missing libraries