Misc issues found when trying to use vogl with mesa

This is a small collection of changes I found I needed to make when starting to play with using vogl with the mesa driver last week.