Don't expose scheduling side of extensions

Also moved debugging macro's from types-internal.h ro util-internal.h
Fix dependencies in Makefiles, get rid of VPATH

They couse trouble finding the dependencies in the correct places.
Also, use -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 only when needed