Fix 'taking address of temporary' errors.