removed -Wshorten-64-to-32 because it's not supported by gcc