fix for compilation without libcore