PeHeaderReader class, fixed bug in e0eb8c8

Added PeHeaderReader class (courtesy of http://code.cheesydesign.com/?p=572), which is used to check whether an application is CUI. This fixes the issue introduced in e0eb8c8.