dynldr: fix compilation warnings, update writable_dir check
dynldr: fix compilation warnings, update writable_dir check

davidechiappetta/metasm,pombreda/metasm,jimokkerse/metasm,steeve85/metasm,rootml/metasm,exported/metasm