Add compile time checking for config pointers