flags for phdr.p_flags added
BUGFIX: wrong imagebase used