fix htole macros for darwin, inital oscilloscope tool