Updated makefile to not use the mkdir -p flag for windows compatibility. Fixed segfault and memory leaks (actual rotation doesn't work though, need to work out some magic with pointers only working this time)