Multiple changes

- Updated the detection if the library can be built in the build system.
- Moved the includes related to PNG loading between files.
- Added missing include file to oglplus example.