Fix detected flags from ACX_PTHREAD being reset.
Include path should be CPPFLAGS, not CFLAGS.