Check if platform is Apple and only add 'rdynamic' GCC compiler flag if it is not. Not needed for Mac OS: http://lists.apple.com/archives/unix-porting/2005/Feb/msg00025.html