Link boost library for osx.
Optimize include header.
Remove apnghelper class.