Revert "Revert "Compiler and linker options selection added""

This reverts commit 7d7c60fb34942e789e69c5c5ffba2acf3ad9c7ea.