[FindLibrary] Rewrite implementation of FindLibrary* modules.

Follow http://www.cmake.org/Wiki/CMakeMacroParseArguments convention