Mac compatibility added

-rdynamic flag removed. CC=gcc-4.9 added
TODO: OS-specific CC-flag