Add extensions configuration option.

Signed-off-by: Timothy McCoy <mccoy.m.tim@gmail.com>
Add 'c++' extension default for back compatibility
Merge pull request #4 from timikoy/master

Add extensions configuration option.