fix some build errors (progmem attribute) and warnings (const propogation)