Add missing ifdef guards to an internal header file