PMC: added defines to control serilize exports