Remove unnecessary import std.metastrings
fix compilation with DMD 2.066 or later
Remove disused functions and little cleanup