Added FREETDS_DIR environment variable support, if present, and switched version to 0.5.1