linkerFlags and error handling

* Added linkerFlags to makefile-generator
* Improved error handling