Bug fixes, DLL fixes.

DLL should actually work on non-Win8 machines now.