Refactor RTM data structures into loader C file

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Replace fnmatch with a version licensed under 3-clause BSD

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Merge branch 'master' of github.com:cmatsuoka/libxmp