Avra
You are correct, that is exactly how it was used. Bilsen converted the libs for use in free Pascal and that is what was used to write the pascal code.
It is written in Lazarus Free Pascal, although if you purchase it you also have the basic language option which i tried but missed OOP.
AGK is pretty good as you have several final targets (need a Mac for iOS of course)!