[FIX] Fix compiler flag issue
[TASK] Do some cleanup
[TASK] Add support for 3 bars required for Altera version