Restore codes needed for statically linked