BUG: Fix the linker error related to transformIOFactoryTemplate classes

This commit is kind of messy but it contains all of last changes toward itk
to register IOFactoryTemplate classes properly and fix the linker
errors.

Now ITK is build successfully.

PS: ANTs is also built successfully based on this version of itk;
however the created (HDF5/Txt/Matlab)TransformIOTemplate classes cannot
be casted to TransformIOBaseTemplate.

Change-Id: I3111f0f2dd27af032f6dde415b41e099a34998ee