Fix in correct typecast
Remove makefile, in lew of platform specific makefile