fixed: compilation failure on Synology NAS

Test "curl-config" for "--built-shared" option to decide
whether to include output of "--static-libs" or not