Allow backend selection using the Makefile

Cleaned it up a bit wherever reasonable to accomodate for the changes
Merge pull request #30 from bartbes/master

Allow backend selection using the Makefile