Fixed a missing namespace and a stupid assumption that everyone is using 64-bit machines!