scripting: std::auto_ptr -> std::unique_ptr

Change-Id: I91f4a037dfcfbea83cb1ea546ea73880f0480961
Blind fix for Android

Change-Id: If997720635f99726e14c00132308529f96e639c8