Add error message for static build