Testing out improving handling of 64bit builds

Detect if 32 or 64bit build and look up the correct libraries