rift: get rid of nullptr, it is not available in older compilers