Add possibility to pass -D flags
Merge pull request #2 from tomaka/defs

Add possibility to pass -D flags
Create output directory if it doesn't exist