A few minor bug fixes to smart pointers
A few more fixes to smart pointers and allocators. Added basic Windows threads.