OK after a bit of research etc. etc. I managed to get the sample program working. (PS2000)
I already had most compiler stuff ready. I needed to get the headers for 32 bit development on the 64 bit machine. Place the provided shared libs under /usr/lib32. and compile with the -m32 option - basically building a 32bit app.
for 32bit ubuntu things should be pretty much straight forward.
Next step now is to get it working with code::blocks
Now it's bedtime!