first try for RTL; change to WinThread on windows (winpthread buggy)