Detect static uuid library if static build is requested.