Cast as a long so clang and newer gcc will build this.