For FLAC you should just need the audio codec which can be found:
http://flac.sourceforge.net/download.html
As for APE I noticed a few conversion programs to convert APE -> MP3 out
there on the net, a google search will find these.
I recommend moving both formats to a cross platform standard like mp3 since
many people are having issues with their old audio files becomming corrupt
due to codec changes.