changed makefiles, scanner is now compileable and linkable with buffer and fsm