added cast to make compiler happy
linker missed a lib
missing link dir