Fix compile warning with missing cast and order objects in
Makefile