Possible solution for the issue #16

Possible solution for the issue #16 , I created a function that calls the compiler based on the configuration chosen.