Fixed some errors for Linux.