Fixed linking errors with SMFL, switched to static runtime lib