Fix build when visibility condition specified and default added

Thanks nessus