fixed build final, will test on linux, rectified  error in forward.c