enable gbm / piglit tests

a couple of obscure build options and environment variables were
required to enable piglit tests to run against gbm.