Fixed build errors in Library and Example project