adding patch to fix compiler warnings for -wall for all generic files