Improve SENC creation performance by not performing the expensive progress dialog update on every single object
Fix (mostly potential) memory problems detected by cppcheck and valgrind
https://github.com/OpenCPN/OpenCPN/pull/42 + make it build on Linux