changes for static compilation