build.bat: Fix lite build with installer.

The addition of the API config broke lite build with installer.
Fix a possible dead lock when opening a file when one is already playing.

Easily reproducible with madVR.

Ticket #3865.