update makefile to locm3 latest
update all u8, u16 etc to uint8_t, uint16_t etc
missed u64. of course.
update makefile to build all code objects
add prototypes for everything to clean up build warnings