Adding THREADED flag to Makefile.ALL so pthread support is on by default