fixed compile failure on linux