Fixes mac check to use the linker flags

I'm still fairly new to scons though so I'm sure this can be improved.