win32 build system
BROKEN: started win32 porting
BROKEN: fixed up modes/xbee1 (others will be supported later) along with slight modifications to build system and other core files
BROKEN: sorted end-of-line mess created by TortoiseGit in 845e4b59d19cc1b6b832642e951d96a7077d936c
BROKEN: added mode->init call for microsoft compiler support
BROKEN: fixed xsys_thread_create(), only 4 unresolved symbols left
BROKEN: fixed xsys_sem_timedwait(), only 3 unresolved symbols left
BROKEN: fixed clock_gettime(), only 2 unresolved symbols left
BROKEN: fixed build system
BROKEN: added 'CLEAN_FILES' for OS independence
BROKEN: fixed build system (follow on from 4f25cd480b37a25b03c8f2a25e340babf5eea92e)
BROKEN: changed default calling convention (__stdcall -> __cdecl)
BROKEN: moved xbee_serialSetup() - modes/common.c -> xsys_*.c
BROKEN: added win32 DLL resource info
Merge branch 'master' into win32

Conflicts:
	modes/xbee1/at.h
BROKEN: implemented pthreads (thanks to http://locklessinc.com/articles/pthreads_on_windows/)
BROKEN: moved "uuid.lib" pragma into xsys_win32.c
BROKEN: implemented xsys_sem_getvalue()
BROKEN: added missing 'xsys_win32_winpthreads.h' from 95cbd7736746e7c537799c4525d0f88dcb4a713a
Merge branch 'master' into win32

Conflicts:
	internal.h
	modes/common.c
	xsys.h