Added some changes for test to work properly.
Added a couple of deprecated macros.
Added an include in dlopenTest.cpp
Changed static_cast macros for hard coded ones.