Fixing static compilation