Fix MDL loader return value in case of error

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
[test] Add MDL 1.1 format test

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Minor refactoring and reindent of EMOD loader

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>