Fixed Portability

Allows the code to compile with a C and/or C++ compiler.