Core: Declare some functions const and remove use of "using" directiv…

…e in a couple of files