Added int/long fix for libconfig to new code