Fixes invalid collation function pointers on Win

Also includes a few little cleanup items, like lazy creation of
Manager.SharedInstance.