Fix C++ stuff and nspire-* permissions

With #define ADDR_(addr) (void*)addr GCC prints a lot of warnings about void* arithmetic
and the max() #define should be fixed in another way, but for c++ this works.