cleanup old declarations and import core.memory
Merge pull request #1066 from MartinNowak/gcDecls

cleanup old declarations and import core.memory