add and fix compiler warnings, add label->style rendering to legend