Fixed errors on linux.