cppcheck performance fixes in cores/dllloader/