Sprites: Add sprite_manager.{ch}

Work in progress..
Replace build.sh with Makefile
Fix compiler warnings