Fix and re-add libfdt unit test cases

libfdt unit tests were removed in previous patch as they caused multiple
compilation issues due to the unit testing framework update. This patch
addresses those problems and now the tests are functional.

Signed-off-by: Juan Pablo Conde <juanpablo.conde@arm.com>
Change-Id: Ib8a384dd3df719161a52c2e469b35a8c7da24b4c
11 files changed