Try to pull in less headers when allowing access to APPLCATION and APPLICATION_DYN
APPLCATION
APPLICATION_DYN
stacked on: #4494
Please rebase this PR