Don't cast Resource object's pointer to identifier.

Casting object's pointer to quint32 identifier is not 64bit safe.
Resource identifier isn't used anywhere in libresourceqt so keep
identifier zero for all Resource objects for now.
[libresource] Fix GCC 4.8 related build errors, Contributes to JB#22700

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>