[#10087] Avoid stat warnings with missing static sources