Correct seek error, add Makefile