libfimg: Initial work on conversion to new DRM-based API part 2

It compiles!

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>