restructure rc header files for better portability
do fixes for 64-bit host