prima: HACK: compilation fixes for gcc 4.6

These changes are reguired to compile sucessfully with gcc 4.6
It's temporary solutions and better to remove the warning from codes.

Change-Id: I7fb7456134bc44bf5ce49edf5f00dae10ae5e778