testegl: properly detect and use rpi specific libs

Use pkg-config to detect and configure rpi specific libs used in testegl
rather than hardcoding their flags.
4 jobs for bcm in 6 minutes and 17 seconds (queued for 2 seconds)