Define global constant BUILD_SUPPORT_INTERNAL

Change-Id: I7966156400a817a5dddf0b73628e8fb67b2ea339
Make compilation of optional modules depend on BUILD_SUPPORT_INTERNAL value

Change-Id: Ib0f2492e7c606d9b583829623d34e2eaf1ff59b4