It was my mistake to include these palette files in the lib, they should have been left open.
I will update the sim repository soon (as soon as I get time) and open all this stuff
BTW: on Ubuntu the sim runs no problems after 45 min
const unsigned char paletteCGA[48] = {
0x00,0x00,0x00, //black
0xFF,0xFF,0xFF, //white
0xff,0x00,0xff, //magenta
0x00,0xFF,0xFF, //cyan
0xFF,0xFF,0x00, //yellow
0x00,0xFF,0x00, //green
0x00,0x00,0xFF, //blue
0xFF,0x00,0x00, //red
0x3F,0x3F,0x3F, //dark gray
0x7F,0x7F,0x7F, //light gray
0x7F,0x00,0x7F, //violet (dark magenta)
0x00,0x7F,0x7F, //teal (dark cyan)
0x7F,0x3F,0x00, //brown
0x00,0x7F,0x00, //dark green
0x00,0x00,0x7F, //dark blue
0x7F,0x00,0x00 //dark red
};