I downloaded fpc 1.94 and now things compile better.
Also i installed glib-devel now i do not have the ld linking error anymore.

New is that on executing ld is complaining about pointers not being valid anymore and refers to some c code?