Switch to CMake.
Fix basic errors and warnings.
Delete .pro file.