Removed CXXFLAGS (specifically stack protector and sharedlib) for unix builds (non mac) to allow for static builds.