Windows compile fixes

Need to fix some warnings still, but the errors are gone.
Also removed a dependency on boost in serialization.