Merkaartor needs to link libsqlite3.
Fix building with gcc 4.7 and later.
Fix building markaartor on arm.