Fix config header and quiet some warnings