Updae support for LOCALSTATEDIR in cmake build.