Fix GCC errors for __attribute__ declarations/definitions
Update to Qt5