Don't try to get back() of empty vector in LootManager

Fixes #1207
Merge pull request #1208 from dorkster/fixes

Don't try to get back() of empty vector in LootManager
Merge remote-tracking branch 'upstream/master'
Add HW render device header to CMakeLists