add CHDK_PTP_PROTOCOL_ONLY ifdef to allow ptp headers to be used by client applications
Some more code and header file cleanup.