fixed build errors on linux