(XDK1) Compile with HAVE_THREADS defined