this fix (borrowed from libflac 1.3.0) works as well in OSX 10.6.8. I hope it compiles 
fine under other environments too. Thanks to Firewave for pointing it out. nw.