fix some warnings during build