Revert "Revert "Add SAMPGDK_STATIC option""

This reverts commit a419efc42a75fa47fc195188c95f363724cf8395.

Conflicts:
	CMakeLists.txt
	lib/python/ply