Fix multiple warnings when compiling as C++
Fix pe.h