fixed compilation with gcc.
fixed compilation of the Python bindings after fix made in 4c0dd0f1f2de03359788dfae3c4e8d090242e184.