Made makefile nicer, cast integer to avoid warnings