corrections for static compilation mode