Remove non-portable and unnused header includes
Use g_setenv and g_getenv for portability
Use g_random_int instead of ::random for portability
Use pthread_equals in libpbd for portability
 Use a std::list instead of std::set for the ThreadMap in libpbd

pthread_t can't work with std::set using the pthread lib on windows
as there is no operator< defined for the type
Use default constructor for pthread_t in InterthreadInfo ctor
Use pthread_equal in libmidi++ for portability
Use PBD::pthread_name in debug output for portability
Use PBD::pthread_name in debug output instead of pthread_self
Fix some usage of non-standard types for portability
Only call configure in surface subdirectories if the required deps are available

I think these checks should probably be in the surface build files so they
are self contained...
Add Windows building/packaging scripts
Add clean script to windows stuff to save a bit of typing
Use boost::uuid instead of libuuid
Use boost::tokenizer in PBD::parse_debug_options for portability
Fallback to gettimeofday for access time in FileManager
Add pbd/resource.h for portable access to resource limits
Use pbd/resource.h in PBD::FileManager
Add an empty implementation of PBD::mountpoint for mingw

PBD::mountpoint is only used to find peakfiles for old sessions, so it might
not be necessary to implement this for windows.
Include io.h on windows for access