Revert patches which caused compilation error when using lots of threads

This reverts the following commits:
e87106d mapi: Inline shared-glapi/tests/Makefile.
7172f02 mapi: Inline glapi/tests/Makefile.
9dbb0f4 mapi: Inline glapi/Makefile.
dff5a21 mapi: Inline es2api/Makefile.
18ef513 mapi: Inline es1api/Makefile.
c3ce1a9 mapi: Inline shared-glapi/Makefile.

Change-Id: Ief13aee7d2820e206eec6bb2d73c38f56236d96a
9 files changed