Compilation fails or goes through based on which header file is included