Fixes for mingw
Fixes for building without threads
Include rad_assert.h