compiler fixes, static -> const