After reinstalling the Arduino IDE (which didn't solve the problem) i figured out the issue:
Take the tty2rgbmatrix.ino out of the downloaded folder (dowload ZIP from github), put it somewhere and let arduino make a new foldêr. And voila: It compiles.
And the brightness changes now too.
Strange issue