Fix some errors in linux platform.