fix compilation without OS
add OS mem usage in DebugActor
remove unused code