CMake: Fixed mismatching library vs app builds.

This should fix release builds on *nix having their asserts and LOGDs enabled.