compilation fixes

restore file liboslexec/runtimeoptimize.cpp from upstream master