Update makefile.
Fix build errors for linux.
Fix build errors for linux.