Polish interfaces; show function in tgfb_die()

Return the pointers of newly allocated structs read from file.

Standardise the interface of tgfb and tgfbanim to the above style.

Save the name of an error-setting function and make print it on
tgfb_die(NULL).