Separated ptw_file definition into ptw_type.h
Fixed linker error with multiple typedefs