fixed static compilation