sdlog2: Compile fixes for system power logging