Update dependency on gir_ffi

Due to the removal of some deprecated methods, this requires some updates
in the code.
Prepare version 0.5.0 for release