Add DEVICE_STATE_AS_GPIOR=0 compile time option to the library projects, to reduce compiled binary size.