fix link problems in Windows
add options parsing in client aplication