Minor fixes
New API version of library check