[Liznoo] Migrate to shared_ptrs for resources on Mac.
[Liznoo] Avoid leaking battery props on Mac.
[Liznoo] Don't segfault if props are empty.

Very likely fixes #1554.