Added compiler optimizations to unroll loops and do system dependent optimizations