BUG: Fixed build errors on linux.