Fix janeway build bugs

Signed-off-by: Hui Zheng <fengyimzy@gmail.com>