fix some compiler warnings
fix Wmissing-field-initializers