Follow up d4a58d24d6bcb23a995d62a3d9f9e7190c054b49

Enabled plugin access to mapindex interface

Signed-off-by: shennetsind <ind@henn.et>
Fixed some logic errors

Special Thanks to Haru

Signed-off-by: shennetsind <ind@henn.et>
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Fixed 64b warnings on db2sql

Special Thanks to Haru!

Signed-off-by: shennetsind <ind@henn.et>