Merge pull request #4 from azatoth/master

fix LDFLAGS
some improvements
fix
flags
make is properly buildable on ubuntu as well