lang: Do not crash on lang=0xffff
build: Make it build on modern systems
Remove more unsupported tags