(Supposedly) fix building with gcc9
I don't really have access to gcc9 right now to test, but this should fix "static assertion failed: unique_ptr's deleter must be invocable with a pointer"
CCBUG: 407015