Fixed assertions
Added required library to avoid undefined warnings