Ref #380: enhancements for dynamic_arch
Ref #385: added missing return instruction
Ref #385: fixed warnings in dynamic.c
Merge pull request #386 from wernsaar/develop

Some enhancements for dynamic_arch and some warning fixes