Various build script fixes

Added BUILD_SHARED_LIBS instead of hardcoding to STATIC or SHARED.

cfg-all sets BUILD_SHARED_LIBS to OFF, since MXE doesn't build DLLs.

Moved FindAudiality2.cmake out into the root of the project.