Converted SDL wrappers to use unique ownership semantics.