GCC error when compiling for device with huge proxy class