I'm probably gonna just use regular functions when I call the dll's. It's a bit disappointing but should work with both Delphi and FreePascal.