Fix build errors for test-native