Fix pe parser issues spotted by corkami tests