Minor improvements to build system files.

Allow disabling visibility.
Remove GTK type checks in release builds.
Check that all symbols are resolved in development builds.