Move initialization away from dllmain

Cuz I've been doing it wrong:
http://msdn.microsoft.com/en-us/library/windows/desktop/dn633971%28v=vs.85%29.aspx