check for headers at least conditionally, also for MinGW