Fixed bug in Makefile.subdirs to do with make profile for extensions.