added f41000 ppc hack, renamed 2 headers and fixed code for MSVC compat