Added needed include for size_t
Added #ifdef's around windows specific code
Added #include "prefix.h" to most *.cpp