Add -Wshorten-64-to-32 to configure.ac
Fix compile error with -Wshorten-64-to-32

The original patch was contributed by Alexis La Goutte