Fixed errors in GenericQuantum with GCC