more build script fixes, almost there... just need to figure out how to fix the Lakka patches