Fix compilation with Mesa by removing ";" at the end of main blocks