Makefile: Some fixes for building on Solaris.