Added missing global declarations

Thanks to @GermanG for noticing. Partially fixes #17.