Add workarounds for incomplete types for older compilers