resync with official released mongoose 3.2
fix the build

somewhere in time cmake started to need more libs.
API update