Getting rid of pkg-config on Windows

*Using find_pkg instead of pkg_check_modules in main file
*Getting rid of pkg-config on Windows
*Formatting and cleaning

Tested on Ubuntu trusty and Windows 8.1