mesa: enable osmesa
Move distro-specific flags to dedicated section
Some cleanup
Multi distro support