(singleton) Fix a syntax error
(cmake/gcc) Resolve all errors with linking

Thanks to stackoverflow, once again