Fix build issue for Unix like and android