Fix for static dll