Fix an MOC-related error.
Retain original CMAKE_CXX_FLAGS while setting visibility stuff.
Fix #2.