Improved makefile and added rebar
Merge pull request #1 from SemanticSugar/improvedcompilation

Improved build process