[12742] Add all missing DT_POLIREF64 preprocessors
[12743] Fix some static code analysis warnings and improve performance