Added ability to compile both single and double precision code into the
same library.