Compiling the class into a library will not change its behavior.
You have two options:
1. Explain to the developer who uses this class that they should only create one instance of it.
2. Convert it to a code module which is by definition a singleton.