Don't use __attribute__ with gcc on win32

Change-Id: If3353598e66a30d0ce04782b090a13c2ce44dcab