This has been discussed on and off over the years. Even if APIs are not copyrightable, it has been argued that using an API whose only implementation is GPL creates a derivative work. Clean-room shim header files sound like an admission of bad faith but they may be legally defensible.