Make libfdcore reinitializable (useful for UT)
Merge branch 'ut'