added VS2012 support and changed settings for static-lib