Do not leak the global headers and ensure that the required ones are present in the -dev packages. Fixes: https://bugs.launchpad.net/bugs/1277384, https://bugs.launchpad.net/bugs/1278394.
Approved by PS Jenkins bot, Rodney Dawes, Mike McCracken, Diego Sarmentero.