That should work with older Lazarus versions and older fpc versions too, but you should really upgrade if you are still using an old and unsupported version. Hey, its free!
So: This also works with fpc 2.6.4. and an older Lazarus.
What problems do you have, if any?